﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using static System.Windows.Forms.Control;

namespace VideoNet.Common
{
    public static class AutoSizeFormClass
    {
        public static Control findPicByName(string name, ControlCollection controls)
        {
            foreach (Control control in controls)
            {
                if (control.Name == name)
                {
                    return control;
                }
            }
            return null;
        }
    }
}
